package com.xyzq.service.ya.impl;

import java.util.Date;
import java.util.List;

import org.appfuse.service.impl.GenericManagerImpl;

import com.xyzq.dao.ya.AccountDayStockDAO;
import com.xyzq.model.ya.data.Account;
import com.xyzq.model.ya.data.AccountDayStock;
import com.xyzq.service.ya.AccountDayStockManager;

public class AccountDayStockManagerImpl extends
		GenericManagerImpl<AccountDayStock, Long> implements
		AccountDayStockManager {

	private AccountDayStockDAO accountDayStockDao;

	public AccountDayStockManagerImpl(AccountDayStockDAO accountDayStockDao) {
		super(accountDayStockDao);
		this.setAccountDayStockDao(accountDayStockDao);
	}

	public void setAccountDayStockDao(AccountDayStockDAO accountDayStockDao) {
		this.accountDayStockDao = accountDayStockDao;
	}

	public AccountDayStockDAO getAccountDayStockDao() {
		return accountDayStockDao;
	}

	public List<AccountDayStock> findWithValueDay(Date valueDay) {
		// TODO Auto-generated method stub
		return this.accountDayStockDao.findWithValueDate(valueDay);
	}

	public List<AccountDayStock> findWithValueDay(Date valueDay, Account account) {
		// TODO Auto-generated method stub
		return this.accountDayStockDao.findWithValueDate(valueDay, account);
	}

}
